home *** CD-ROM | disk | FTP | other *** search
- /* test of gcsound */
-
- /***** IMPORTANT - YOU MUST RUN THE GCSOUND PROGRAM FIRST! */
-
- OPTIONS RESULTS
-
- /* load this library for the delay() command */
- addlib('rexxsupport.library',0,-30,0)
-
- address command 'run gcsound'
-
- /* check if the gcsound port exists.. */
- do while ~show(ports,'gcsound')
- delay (5)
- exit
- end
-
- /* Talk to gcsound - quote the port name otherwise arexx will */
- /* make it upper case */
- Address "gcsound"
-
- 'Load HowDoIDoIt.8svx how' /* load a sample (in our dir) */
- 'Play how 1 64' /* play it once, loud */
- say 'Playing...'
-
- /* get and print some info on the sample (while it's playing) */
- 'Info how'
- say 'Sample info (volume, speed) = ' || RESULT
-
- /* this is a "multitasking" program. We will not know when */
- /* our sample has finished playing, so in order to have the */
- /* time to hear our sample before quiting, we delay a little */
-
- delay(200)
- say 'Quiting. Bye..'
-
- 'quit' /* quit gcsound */
-
-
-
-